﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<KabiManagementWeb.Models.Penalty>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Các hình thức phạt tiền</h2>
      <p>
        <%= Html.ActionLink("+ Thêm hình thức phạt", "Create") %>
    </p>
     <table style="width: 100%;" cellpadding="0" cellspacing="0" class="tbList">
        <tr>
            <th></th>
            <th>
                Mã
            </th>
            <th>
                Nội dung
            </th>
            <th>
                Số tiền trừ
            </th>
          
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%= Html.ActionLink("Sửa", "Edit", new { id=item.ID }) %> |
              
            </td>
            <td>
                <%= Html.Encode(item.ID) %>
            </td>
            <td>
                <%= Html.Encode(item.Pe_Name) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:0,0}", item.ExceptSalary)) %>
            </td>
           
        </tr>
    
    <% } %>

    </table>
   
     <div>
        <%= Html.ActionLink("<- Quay lại", "Index") %>
    </div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptZone" runat="server">
</asp:Content>

